package com.agy.filemanager;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
 * @author Zhang Fan
 * @date 2018\8\2 0002 10:46
 * @desc 在程序启动时启动定时服务（springBoot封装好的定时类）
 */
@SpringBootApplication
@EnableScheduling//启动定时
public class springBootTimer {
    protected static final Logger logger = LoggerFactory.getLogger(springBootTimer.class);

    public static void main(String[] args) {
        logger.info("SpringBoot定时服务开始加载");
        SpringApplication.run(springBootTimer.class, args);
        logger.info("SpringBoot定时服务加载完毕");
    }
}
